package com.chs.recoginition.core.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


@Data
@Component
@ConfigurationProperties(prefix = "recoginition.web")
public class WebConfig {

    /**
     * 允许无授权访问静态文件url
     */
    private String[] staticUrls;

    /**
     * 允许无授权访问的API
     */
    private String[] unlicensedUrls;

    /**
     * jwt base64编码算法的签名密钥
     */
    private String jwtSecret;

    /**
     * jwt 有效期（单位毫秒）
     */
    private Long jwtValidity;

    /**
     * jwt cookie 名称
     */
    private String jwtCookieName;

    /**
     * jwt data 用户名key
     */
    private String jwtUsernameKey;

    /**
     * jwt data 用户姓名key
     */
    private String jwtNameKey;

    /**
     * jwt data 用户信息key
     */
    private String jwtUserVo;
}
